package com.jason.cloud.engine.share.driver.grant.service;


import com.jason.cloud.engine.share.driver.grant.bean.GrantBean;

public interface GrantService {

    /**
     * 根据ID查询
     * @param id
     * @return
     */
    GrantBean queryGrantByRoleId(String id);

    /**
     * 更新授权
     * @param grantBean
     */
    void updateGrantParam(GrantBean grantBean);

    /**
     * 保存授权
     * @param grantBean
     */
    void insertGrant(GrantBean grantBean);

    /**
     * 拷贝默认授权
     * @param roleId
     * @return
     */
    void copyRoleGrantByRoleId(String roleId);
}
